package IO;

import java.io.*;

public class OISDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis =new FileInputStream("note.txt");
        ObjectInputStream ois=new ObjectInputStream(fis);
        Person person = (Person)ois.readObject();
        System.out.println(person);
    }
}



